home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / VISCAFE.BIN / FtpErrors.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-06-19  |  1.4 KB  |  21 lines

  1. package symantec.itools.db.awt;
  2.  
  3. import java.util.Hashtable;
  4.  
  5. class FtpErrors {
  6.    Hashtable errTable = new Hashtable();
  7.    public static final int[] errs = new int[]{500, 501, 502, 503, 504, 530, 532, 550, 551, 552, 553};
  8.    public static final String[] errstr = new String[]{"Syntax error, command unrecognized", "Syntax error in parameters or arguments", "Command not implemented", "Bad sequence of commands", "Command not implemented for that parameter", "Not logged in", "Need account for storing files", "Requested action not taken", "Requested action aborted: page type unknown", "Requested file action aborted", "Requested action not taken"};
  9.  
  10.    public FtpErrors() {
  11.       for(int var1 = 0; var1 < errs.length; ++var1) {
  12.          this.errTable.put(new Integer(errs[var1]), errstr[var1]);
  13.       }
  14.  
  15.    }
  16.  
  17.    public String getError(int var1) {
  18.       return (String)this.errTable.get(new Integer(var1));
  19.    }
  20. }
  21.